##
# mysql
##
export PATH=/usr/local/mysql/bin:$PATH

##
# php
##
#export PATH=/usr/local/Cellar/php55/5.5.38/sbin:$PATH
#export PATH=/usr/local/Cellar/php55/5.5.38/bin:$PATH
#export PATH="$(brew --prefix homebrew/php/php55)/bin:$PATH"
#export PATH="$(brew --prefix homebrew/php/php56)/bin:$PATH"
#export PATH="$(brew --prefix homebrew/php/php71)/bin:$PATH"
PATH="/usr/local/bin:$PATH"
PATH="/usr/local/sbin:$PATH"

##
# nginx
##
export PATH=/usr/local/nginx1.11.8/sbin:$PATH

##
# Maven
##
export M2_HOME=/Applications/apache-maven-3.3.9/
export PATH=$PATH:$M2_HOME/bin

##
# alias
##
alias ch='chmod -R 777 ../'
alias ss='sudo -s'
alias sup='svn up | chmod -R 777 ../'
alias cdhome='cd ~'
alias cl='clear'
alias ll='ls -al'
alias cdroot='cd /'
alias gpull='git pull'
alias gci='git commit -a'
alias gpush='git push origin HEAD:refs/for/master'
alias gst='git status'

alias cdgj='cd /var/www/58ganji/www/ganji/ganji_online/'
alias cdwu='cd /var/www/58ganji/www/ganji/ganji_online/wu'

alias cdonl='cd /var/www/jack/online'
alias cddev='cd /var/www/jack/online'

alias unrar=/usr/local/Cellar/unrar/5.5.6/bin/unrar

alias brew=/usr/local/bin/brew

##
# ssh 
##
alias sshal='sshpass -p jacksun57287*# ssh root@115.28.107.128'
alias sshcdb='sshpass -p JACKSUN57287*# ssh sunquan02@relay.db.58dns.org'
#alias sshvu='sshpass -p 'c!Q1e#g9_jE!s_k)' ssh -p 22 root@45.77.25.181'
alias ssh58='sshpass -p JACKSUN57287*# ssh sunquan02@relay.58corp.com' && echo 'JACKSUN57287*#' | pbcopy 

alias killphp="ps aux | grep php | awk '{print $1}'|xargs kill -9"
alias killnginx="ps aux | grep nginx | awk '{print $1}'|xargs kill -9"

alias ip="ifconfig | grep broadcast | awk '{print $2}'"


##
# bash
##
PS1='[\u:\W \$] '

##
# memcache
##
alias memcache='telnet 127.0.0.1 11211'

export PATH="$(brew --prefix homebrew/php/php56)/sbin:$PATH"

